package org.softmed.rest.server.core.handler;

import java.util.ArrayList;
import java.util.List;

import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.name.Named;

public class DefaultHandlerProvider implements
		Provider<List<SpecificHandlerSolver>> {
	private List<SpecificHandlerSolver> specificHandlerSolvers = new ArrayList<SpecificHandlerSolver>();

	@Inject
	public DefaultHandlerProvider(
			@Named("JavaSolver") SpecificHandlerSolver handlerSolver) {

		specificHandlerSolvers.add(handlerSolver);
	}

	public List<SpecificHandlerSolver> get() {
		return specificHandlerSolvers;
	}
}